.class public Lrexsee/core/menu/PopMenus;
.super Ljava/lang/Object;
.source "PopMenus.java"


# instance fields
.field public final menus:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lrexsee/core/menu/PopMenu;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 6
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    .line 5
    return-void
.end method


# virtual methods
.method public add(Lrexsee/core/menu/PopMenu;)V
    .locals 1
    .param p1, "menu"    # Lrexsee/core/menu/PopMenu;

    .prologue
    .line 8
    iget-object v0, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 9
    return-void
.end method

.method public get(Ljava/lang/String;)Lrexsee/core/menu/PopMenu;
    .locals 3
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 11
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v2, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_0

    .line 15
    const/4 v2, 0x0

    :goto_1
    return-object v2

    .line 12
    :cond_0
    iget-object v2, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/core/menu/PopMenu;

    .line 13
    .local v1, "menu":Lrexsee/core/menu/PopMenu;
    iget-object v2, v1, Lrexsee/core/menu/PopMenu;->id:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    move-object v2, v1

    goto :goto_1

    .line 11
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public remove(Ljava/lang/String;)V
    .locals 3
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 18
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v2, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_0

    .line 22
    return-void

    .line 19
    :cond_0
    iget-object v2, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/core/menu/PopMenu;

    .line 20
    .local v1, "menu":Lrexsee/core/menu/PopMenu;
    iget-object v2, v1, Lrexsee/core/menu/PopMenu;->id:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lrexsee/core/menu/PopMenus;->menus:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    .line 18
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method
